package pl.edu.agh.admin.core;

import pl.edu.agh.admin.api.User;

public class UserImpl implements User {

	private String name;
	
	public UserImpl(String name){
		this.name = name;
	}
	
	@Override
	public void setName(String name) {
		this.name = name;
	}

	@Override
	public String getName() {
		return name;
	}

	@Override
	public boolean equals(Object obj) {
		if (obj instanceof UserImpl){
			return name.equals(((UserImpl)obj).getName());
		}
		return false;
	}
}
